import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import Register from '@/components/Register'
import Home from '@/components/Home'
import ShowInfo from '@/components/ShowInfo'
import Chat from '@/components/Chat'
import Paymoney from '@/components/Paymoney'

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/showinfo',
      name: 'ShowInfo',
      component: ShowInfo
    },
    {
      path: '/chat',
      name: 'Chat',
      component: Chat
    },
    {
      path: '/pay',
      name: 'Paymoney',
      component: Paymoney
    },
  ]
})
